package com.test.com.test.rbac.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/*
   @author YZ
   @date   2020-05-19
*/
@Controller
public class IndexController {

    @RequestMapping("/")
    public String index(){
        return "index";
    }

    //路由跳转freemarker页面
    @GetMapping("to/{path}")
    public String to(@PathVariable String path){
        return path+"/index";
    }

}
